package com.wx.service.impl;

import com.wx.entity.SysAeReportLog;
import com.wx.mapper.SysAeReportLogMapper;
import com.wx.service.SysAeReportLogService;
import com.wx.utils.SnowFlakeUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>Title:	  weixin-go-with-you <br/> </p>
 * <p>Description TODO <br/> </p>
 * <p>Company:    医百科技有限公司  <br/> </p>
 *
 * @Author <a href="yangwensheng@100doc.com.cn"/>杨文生</a>  <br/>
 * @Date 2021/3/27 13:00
 */
@Service
public class SysAeReportLogServiceImpl extends BaseServiceImpl<SysAeReportLog>  implements SysAeReportLogService {

    @Resource
    private SysAeReportLogMapper sysAeReportLogMapper;


    @Override
    public int sysAeReportLog(SysAeReportLog sysAeReportLog) {
        sysAeReportLog.setId(SnowFlakeUtil.getStringId());
        return sysAeReportLogMapper.insertSelective(sysAeReportLog);
    }

    @Override
    public List<SysAeReportLog> listReportLog(String patientId) {
        return sysAeReportLogMapper.listReportLog(patientId);
    }
}
